package com.crm.custinfo.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.crm.custinfo.mapper.CustInfoDelMapper;
import com.crm.custinfo.domain.CustInfoDel;
import com.crm.custinfo.service.ICustInfoDelService;

/**
 * 客户删除记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
@Service
public class CustInfoDelServiceImpl implements ICustInfoDelService 
{
    @Autowired
    private CustInfoDelMapper custInfoDelMapper;

    /**
     * 查询客户删除记录
     * 
     * @param id 客户删除记录主键
     * @return 客户删除记录
     */
    @Override
    public CustInfoDel selectCustInfoDelById(Long id)
    {
        return custInfoDelMapper.selectCustInfoDelById(id);
    }

    /**
     * 查询客户删除记录列表
     * 
     * @param custInfoDel 客户删除记录
     * @return 客户删除记录
     */
    @Override
    public List<CustInfoDel> selectCustInfoDelList(CustInfoDel custInfoDel)
    {
        return custInfoDelMapper.selectCustInfoDelList(custInfoDel);
    }

    /**
     * 新增客户删除记录
     * 
     * @param custInfoDel 客户删除记录
     * @return 结果
     */
    @Override
    public int insertCustInfoDel(CustInfoDel custInfoDel)
    {
        return custInfoDelMapper.insertCustInfoDel(custInfoDel);
    }

    /**
     * 修改客户删除记录
     * 
     * @param custInfoDel 客户删除记录
     * @return 结果
     */
    @Override
    public int updateCustInfoDel(CustInfoDel custInfoDel)
    {
        custInfoDel.setUpdateTime(DateUtils.getNowDate());
        return custInfoDelMapper.updateCustInfoDel(custInfoDel);
    }

    /**
     * 批量删除客户删除记录
     * 
     * @param ids 需要删除的客户删除记录主键
     * @return 结果
     */
    @Override
    public int deleteCustInfoDelByIds(Long[] ids)
    {
        return custInfoDelMapper.deleteCustInfoDelByIds(ids);
    }

    /**
     * 删除客户删除记录信息
     * 
     * @param id 客户删除记录主键
     * @return 结果
     */
    @Override
    public int deleteCustInfoDelById(Long id)
    {
        return custInfoDelMapper.deleteCustInfoDelById(id);
    }
}
